package com.edu.his.controller.login;

import com.edu.his.domain.Employee;
import com.edu.his.service.EmployeeService;
import com.edu.his.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 描述：
 * 创建人：飘
 * 创建时间：2024/12/16
 **/
@RestController
@RequestMapping("/employee")
@CrossOrigin(value = "*",maxAge = 3600)
public class EmployeeController {

    @Autowired
    private EmployeeService employeeService;

    @PostMapping("/login")
    public R login(@RequestBody Employee employee)
    {
            return  this.employeeService.login(employee);
    }

}
